#ifndef CVCAMERAWINDOW_H
#define CVCAMERAWINDOW_H

#include <QWidget>
#include "ui_cvcamerawindow.h"

#include "cvcamerathread.h"

class QSettings;

class CVCameraWindow : public QWidget
{
    Q_OBJECT

public:
    CVCameraWindow(QWidget *parent = 0);
    ~CVCameraWindow();

    void writeSettings(QSettings & settings) const;
    void readSettings(QSettings & settings);

public slots:
    void drawPixmap(QPixmap pixmap);
	AIThread<CvCameraInner> & getCameraThread() { return m_thCamera; }
    
private:
    Ui::CVCameraWindow ui;

    AIThread<CvCameraInner> m_thCamera;
    void closeEvent(QCloseEvent * event);
};

#endif // CVCAMERAWINDOW_H
